/*
 * @Author: weiwang
 * @Date:   2018-12-01 14:24:07
 * @Last Modified by:   weiwang
 * @Last Modified time: 2018-12-01 18:41:55
 */
import RenderAuthorized from '@/components/Authorized';
import { getAuthority } from './authority';

let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line

// Reload the rights component
const reloadAuthorized = () => {
  Authorized = RenderAuthorized(getAuthority());
};

export { reloadAuthorized };
export default Authorized;